package com.lhl.biz.template.api.server.service;


import com.lhl.biz.template.api.shared.domain.dto.TempDTO;
import com.lhl.biz.template.api.shared.domain.dto.TemplateDTO;
import com.lhl.biz.template.api.shared.domain.vo.TemplateVO;

import java.time.LocalDate;
import java.util.List;

/**
 * @className: TemplateService
 * @description: 模板服务接口
 * @author: king
 * @date: 2020-06-17 10:03
 **/
public interface TemplateService {
    public TemplateDTO queryById(String id);

    public List<TemplateDTO> queryByJson(String code);

    public List<TemplateDTO> queryByName(String name);

    public List<TemplateDTO> findByBirthdayIsGreaterThanEqual(LocalDate birthday);

    public TempDTO findByName(String name);

    void save(TemplateVO template);

    TemplateDTO findById(String id);
}
